﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Diagnostics;
using System.ComponentModel;
using WPFExcelReport.Helpers;
using System.Windows.Input;
namespace WPFExcelReport
{
    public partial class TBASTGA
    {
        public TBASTGA()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VBASTGA();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void OnEXAUFChg(string vlaue)
        {
            if (EXAUF.Length < 32)
                return;
            PM["ART"] = EXAUF.Substring(0, 20);
            PM["VAR"] = EXAUF.Substring(20, 2);
            PM["FARBE"] = EXAUF.Substring(22, 10);
            TMV.LOADBYWS(PM);
            vwMaster.View.MoveCurrentToFirst(); 
            base.OnEXAUFChg(vlaue);
        } 
    }
}
